﻿
using Godot;

public class PlayerStateGround(Player player, StateMachine stateMachine, AnimatedSprite3D animation3D) 
	: State(player, stateMachine, animation3D)
{
	public override void Process(double delta)
	{
		base.Process(delta);

		if (player.direction == Vector2.Zero)
		{
			stateMachine.SwitchState(player.idleState);
			
		}
		else
		{
			stateMachine.SwitchState(player.moveState);
		}
	}
}